package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SQuestionsDiscussReplayMapper;
import com.ruoyi.system.domain.SQuestionsDiscussReplay;
import com.ruoyi.system.service.ISQuestionsDiscussReplayService;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-10-29
 */
@Service
public class SQuestionsDiscussReplayServiceImpl implements ISQuestionsDiscussReplayService 
{
    @Autowired
    private SQuestionsDiscussReplayMapper sQuestionsDiscussReplayMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param id 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public SQuestionsDiscussReplay selectSQuestionsDiscussReplayById(String id)
    {
        return sQuestionsDiscussReplayMapper.selectSQuestionsDiscussReplayById(id);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param sQuestionsDiscussReplay 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<SQuestionsDiscussReplay> selectSQuestionsDiscussReplayList(SQuestionsDiscussReplay sQuestionsDiscussReplay)
    {
        return sQuestionsDiscussReplayMapper.selectSQuestionsDiscussReplayList(sQuestionsDiscussReplay);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param sQuestionsDiscussReplay 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSQuestionsDiscussReplay(SQuestionsDiscussReplay sQuestionsDiscussReplay)
    {
        return sQuestionsDiscussReplayMapper.insertSQuestionsDiscussReplay(sQuestionsDiscussReplay);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param sQuestionsDiscussReplay 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSQuestionsDiscussReplay(SQuestionsDiscussReplay sQuestionsDiscussReplay)
    {
        return sQuestionsDiscussReplayMapper.updateSQuestionsDiscussReplay(sQuestionsDiscussReplay);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param ids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSQuestionsDiscussReplayByIds(String ids)
    {
        return sQuestionsDiscussReplayMapper.deleteSQuestionsDiscussReplayByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param id 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSQuestionsDiscussReplayById(String id)
    {
        return sQuestionsDiscussReplayMapper.deleteSQuestionsDiscussReplayById(id);
    }
}
